package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description="出库记录明细表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_outbound_record_detail")
public class WarehouseOutboundRecordDetail extends BaseEntity<WarehouseOutboundRecordDetail> {

    @TableField(value = "warehouse_outbound_record_id")
    @Schema(description="出库记录id")
    private Long warehouseOutboundRecordId;

    @TableField(value = "product_producer_id")
    @Schema(description="厂家id")
    private Long productProducerId;

    @TableField(value = "product_brand_id")
    @Schema(description="品牌id")
    private Long productBrandId;

    @TableField(value = "product_variety_id")
    @Schema(description="品种id")
    private Long productVarietyId;

    @TableField(value = "product_mark_id")
    @Schema(description="牌号id")
    private Long productMarkId;

    @TableField(value = "gross_weight")
    @Schema(description="毛重")
    private BigDecimal grossWeight;

    @TableField(value = "net_weight")
    @Schema(description="净重")
    private BigDecimal netWeight;

    @TableField(value = "product_producer")
    @Schema(description="厂家名称")
    private String productProducer;

    @TableField(value = "product_brand")
    @Schema(description="品牌名称")
    private String productBrand;

    @TableField(value = "product_variety")
    @Schema(description="品种名称")
    private String productVariety;

    @TableField(value = "product_mark")
    @Schema(description="牌号名称")
    private String productMark;

    @TableField(value = "quantity_picked")
    @Schema(description="提货数量")
    private Integer quantityPicked;

    @TableField(value = "user_bundle_code")
    @Schema(description="用户捆包号")
    private String userBundleCode;

    @TableField(value = "sys_bundle_code")
    @Schema(description="系统捆包号（条码）")
    private String sysBundleCode;

    @TableField(value = "product_type_id")
    @Schema(description="产品类型id")
    private Long productTypeId;

    @TableField(value = "product_type_name")
    @Schema(description="产品类型名称")
    private String productTypeName;

    @TableField(value = "customer_id")
    @Schema(description="货权客户id")
    private Long customerId;

    @TableField(value = "indate")
    @Schema(description="货权入库日期")
    private LocalDateTime indate;

    @TableField(value = "first_entry_date")
    @Schema(description="首入库日期")
    private LocalDateTime firstEntryDate;

}
